/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.skycloud.bts.application.config;

import com.skycloud.bts.webservice.TestResource;
import java.util.Set;
import javax.ws.rs.core.Application;

/**
 *
 * @author HAINN
 */
@javax.ws.rs.ApplicationPath("webresources")
public class ApplicationConfig extends Application {

    @Override
    public Set<Class<?>> getClasses() {
        return getRestResourceClasses();
    }

    @Override
    public Set<Object> getSingletons() {
       return getRestResourceSingetons();
    }
    
     private Set<Object> getRestResourceSingetons() {    
        Set<Object> resources = new java.util.HashSet<Object>();
        resources.add(new TestResource());
        return resources;
    }

    private Set<Class<?>> getRestResourceClasses() {
        Set<Class<?>> resources = new java.util.HashSet<Class<?>>();
        resources.add(com.skycloud.bts.webservice.GenericResource.class);
        resources.add(com.skycloud.bts.webservice.TestResource.class);
        return resources;
    }
    
}
